cmake_minimum_required(VERSION 3.20)

project(test_no_all_defined C CXX)

add_library(sub SHARED a.c)
add_executable(main main.c)
target_link_libraries(main sub)
